<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html class="">
<head>
	
	<meta name="author" content="蓝凌科技">
	<meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />

	<link rel="stylesheet" type="text/css" href="/Public/Api/css/sm.min.css">	
	<link rel="stylesheet" type="text/css" href="/Public/Api/css/sm-extend.min.css">	
	
	<title>帮工小哥</title>
	
	<script type="text/javascript">
	    var _root = '<?php echo ($_site_url); echo U(' / ');?>', _controller = '<?php echo ($_controller); ?>';
	</script>
	
	
	<link rel="stylesheet" type="text/css" href="/Public/Api/css/main.css">


</head>
<body>
	
	

<div class="page-group">
    <div class="page page-current">
        <!--底部导航开始-->
        <nav class="bar bar-tab buttom-nav">
            <a class="tab-item external active" href="#">
                <span class="icon"><img src="/Public/Api/images/nav-icon-active-1.png" alt=""></span>
                <span class="tab-label">首页</span>
            </a>
            <a class="tab-item external" href="<?php echo U('Orders/index');?>">
                <span class="icon"><img src="/Public/Api/images/nav-icon-1.png" alt=""></span>
                <span class="tab-label">订单</span>
            </a>
            <a class="tab-item external" href="<?php echo U('User/index');?>">
                <span class="icon"><img src="/Public/Api/images/nav-icon-2.png" alt=""></span>
                <span class="tab-label">我的</span>
            </a>
        </nav>
        <!--底部导航结束-->
        <div class="content native-scroll">
            <div class="auto-play">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                    	<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$view): ?><div class="swiper-slide">
                        			<a href="<?php echo U('Activity/viewAction', 'id='.$view['banner_id']);?>">
                        				<img src="<?php echo ($view['fullpath']); ?>" alt="" style="height:150px;">
                        			</a>
                        		</div><?php endforeach; endif; ?>
                        <?php else: ?>
                        	<div class="swiper-slide"><img src="/Public/Apiimages/focus-img-2.png" alt=""></div>
                        	<div class="swiper-slide"><img src="/Public/Apiimages/focus-img-2.png" alt=""></div>
                        	<div class="swiper-slide"><img src="/Public/Apiimages/focus-img-2.png" alt=""></div><?php endif; ?>
                    </div>
                    <div class="bar bar-header-secondary">
                    	<form action="<?php echo U('Class/index');?>" method="post" id="searchform">
                        <div class="searchbar">
                            <a class="searchbar-cancel">取消</a>
                            <div class="search-input focus">
                                <label class="icon icon-search" for="search"></label>
                                <input type="search" id='param' name="param" placeholder='输入关键字...'>
                            </div>
                        </div>
                        </form>
                    </div>
                    <div class="swiper-pagination"></div>
                </div>
            </div>
            <div class="splite-line">
                <h2 class="splite-line-1"><span>帮工服务</span></h2>
            </div>
            <div class="server-list clearfix">
                <ul>
                	<?php if(!empty($classList)): if(is_array($classList)): foreach($classList as $key=>$class): ?><li>
		                        <a href="<?php echo U('Class/viewAction', 'class_id='.$class['class_id']);?>">
		                            <i></i><span><?php echo ($class['class_name']); ?></span>
		                        </a>
		                    </li><?php endforeach; endif; endif; ?>
                </ul>
            </div>
            <div class="splite-line">
                <h2 class="splite-line-1"><span>活动推荐</span></h2>
            </div>
            <div class="zan-gift">
                <ul class="clearfix">
                    <li>
                        <a href="<?php echo U('Worker/index');?>">
                            <img src="/Public/Api/images/index-zan.png" alt=""><span>小哥推荐</span>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo U('Share/index');?>">
                            <i><img src="/Public/Api/images/index-gift.png" alt=""></i><span>推荐有奖</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="suggestions-complaint">
                <ul class="clearfix">
                    <li>
                        <a href="<?php echo U('Feedback/index');?>">
                            <img src="/Public/Api/images/index-wechat.png" alt=""><span>投诉建议</span>
                        </a>
                    </li>
                    <li>
                        <a href="tel:4008526519">
                            <i><img src="/Public/Api/images/index-phone.png" alt=""></i><span>联系客服</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>





	<!-- 底部
================================================== -->
<footer>
</footer>
<script type="text/javascript">
    (function(){
        var ThinkPHP = window.Think = {
            "ROOT"   : "", //当前网站地址
            "APP"    : "/api.php?s=", //当前项目地址
            "PUBLIC" : "/Public", //项目公共目录地址
            "DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
            "MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
            "VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
        }
    })();
    
</script>
<script src="/Public/Api/js/zepto.min.js" type="text/javascript">
</script>
<script type="text/javascript">
//坑死人的配置项
//若不加此配置，则所有页面均使用 js 和 css 缓存
$.config = {
   	router: false
}
</script>
<script src="/Public/Api/js/sm.min.js" type="text/javascript">
</script>
<script src="/Public/Api/js/sm-extend.min.js" type="text/javascript">
</script>
<script src="/Public/Api/js/think.js" type="text/javascript">
</script>


<script src="/Public/Api/js/swiper.min.js" type="text/javascript"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    paginationClickable: true,
    spaceBetween: 30,
    centeredSlides: true,
    autoplay: 2500,
    autoplayDisableOnInteraction: false
});

$("#searchform").on("submit", function(e) {
	
	var param = $("#param").val();
	
	if(!param){
		e.preventDefault();
		return false;
	}else{
		$("#searchform").submit();
	}
});
</script>

<!-- 用于加载js代码 -->

</body>
</html>